<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />	
	<title><?php echo $page_title; ?></title>
    <?php foreach ($styles as $file => $type) echo HTML::style($file, array('media' => $type)); ?>
    <?php //foreach ($scripts as $file) echo HTML::script($file); ?>
    
    <link href="./public/assets/default.css" rel="stylesheet" type="text/css" media="all"/>
    <link type="text/css" href="/assets/default/js/tokeninput/styles/token-input-facebook.css" rel="stylesheet" media="screen" />
    
    
    <script type="text/javascript" src="/public/assets/js/jquery.js"></script>
	<script type="text/javascript" src="/public/assets/js/jquery-ui-1.8.16.custom.min.js"></script>
	<script type="text/javascript" src="/public/assets/js/jquery-ui-timepicker-addon.js"></script>
	<script type="text/javascript" src="/public/assets/js/jquery.tmpl.min.js"></script>  
	<script type="text/javascript" src="/public/assets/js/jquery.masonry.min.js"></script>  
	<script type="text/javascript" src="/public/assets/js/task.js"></script>
	<script type="text/javascript" src="/public/assets/js/calendar.js"></script>
	<script type="text/javascript" src="/public/assets/js/common.js"></script>
	<script src="/public/assets/js/elrte.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="/public/assets/js/i18n/elrte.ru.js" type="text/javascript" charset="utf-8"></script>

	<?php echo View::factory('/jquery_template/template')?>
</head>
<body>
	<script>
		const assign_status = $.parseJSON('<?php echo addslashes(json_encode(Helper_MyConst::$TASK_STATUS_TABLE))?>');
		const assign_priority = $.parseJSON('<?php echo addslashes(json_encode(Helper_MyConst::$PROJECT_PRIORITY_TABLE))?>');
	</script>
  	<div id="header">
		<h1><a href="#"><?php $name = (isset($project)) ? $project['name'] : 'Project Manager'; echo $name;?></a></h1>
		<!--<h2>Loc Nguyen</h2>-->
	</div>
	<div id="menu">
		<?php echo $top_header?>
	</div>		<!-- 		end #header		-->
	<?php echo $control_navigation;?>
	<div id="content">
	<?php if (!isset($single_content)):?>
		<div id="primaryContentContainer">
			<div id="primaryContent">
				<?php echo $primary_content;?>
			</div>
		</div>
		
		<div id="secondaryContent">
			<?php echo $secondary_content;?>
		</div>
		<div class="underground-background"></div>
	<?php else:?>
		<?php echo $single_content?>
	<?php endif;?>
		<div class="clear"></div>
		<div id="footer">
		</div>		<!-- 		end #footer		-->
	</div>
</body>
</html>



